package com.yofeedy.service;

import java.util.List;

import com.yofeedy.bean.UserFeeds;
import com.yofeedy.data.UserFeedDaoImpl;

public final class FeedService {
	public static FeedService feedService = null;

	private FeedService() {
	}

	private UserFeedDaoImpl getUserFeedDaoImpl() {
		return UserFeedDaoImpl.getUserFeedDaoImpl();
	}

	public static FeedService getFeedService() {
		if (feedService == null) {
			feedService = new FeedService();
		}
		return feedService;
	}

	public List<UserFeeds> getUserFeeds() {
		return getUserFeedDaoImpl().getUserFeeds();
	}

	public void saveUserFeeds(UserFeeds userFeed) {
		getUserFeedDaoImpl().saveUserFeeds(userFeed);
	}

}
